package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.User;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface UserMapper {
    void register(User user);

    User getByOpenId(String openid);

    User getById(Long userId);

    /**
     * 动态sql来实现 每日的总人数以及新增人数
     * @param map
     * @return
     */
    Integer countByMap(Map<String,Object> map);
}
